<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://xmlns.jcp.org/jsf/html"
	xmlns:f="http://xmlns.jcp.org/jsf/core"
	xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
	xmlns:c="http://xmlns.jcp.org/jsf/composite"
	xmlns:p="http://primefaces.org/ui">
<h:head>
		<link type="text/css" rel="stylesheet"
		href="#{request.contextPath}/css/skytefAcesso.css" />
</h:head>
<h:body>

	<h:form>
	<p:growl id="msgs" showDetail="true" />
		<p:menubar  styleClass="#{MenuBean.usuario.tipo}" >
			<p:menuitem   styleClass="home" value="Home" ajax="false" icon="ui-icon-home"
				action="#{MenuBean.pageHome()}"
				actionListener="#{ReportLogBean.loadGrid()}" />

			<p:submenu  styleClass="menuGerenciamento" label="Gerenciamento">
				<p:menuitem rendered="#{LoginBean.habilitado}" styleClass="submenuVersao" value="Versão" ajax="false" icon="ui-icon-plus"
					action="#{MenuBean.pageVersao}"
					actionListener="#{GerenVersionBean.load()}" />
				<p:menuitem  styleClass="submenuPOS" value="Autorizar POS" ajax="false" icon="ui-icon-plus"
					action="#{MenuBean.pageCadSerie}"
					 />
			</p:submenu>


			<p:submenu  label="Relatórios">
				<p:menuitem   styleClass="submenuLog" value="Gerencial" ajax="false" icon="ui-icon-plus"
					action="#{MenuBean.pageLog}"
					actionListener="#{ReportLogBean.loadGrid()}" />
					
				<p:menuitem  rendered="#{LoginBean.habilitado}" styleClass="submenuLogTecnico" value="Técnico" ajax="false" icon="ui-icon-plus"
					action="#{MenuBean.pageRelTecnico}" 
					actionListener="#{RelatorioTecnicoBean.loadGrid()}" />
				
			</p:submenu>
			
			
			<p:menuitem value="Sair" ajax="false" style="margin-right:0%;"
				action="#{LoginBean.encerraSessao}" />

		</p:menubar>

	</h:form>
</h:body>
</html>